package com.lagou.task03;

public class AllTest {
    public static void main(String[] args) {
        //手机卡类测试
        Phone p=new Phone();
        p.setId(110);
        p.setName("徐汇公安局");
        p.setAccunt(110);
        p.show();
        //通话套餐类测试
        PhoneCall p1=new PhoneCall();
        p1.setMoney(120);
        p1.setMessage(120);
        p1.setTime(240);
        p1.show();
        p1.show2(120,p);
        //上网套餐类测试
        Internet i=new Internet();
        i.setFlow(3000);
        i.setBill(100);
        i.show();
        i.show1(3000,p);
        //用户消费信息类
        People p2=new People();
        p2.setTime(p1.getTime());
        p2.setFlow((int) i.getFlow());
        p2.setMoney(p1.getMoney()+i.getBill());
        p2.show();
    }
}
